<div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
    <table>
        <tbody>
        <volist name="groupList" id="rs">
            <tr data-id="{$rs['id']}">
                <td class="sign">
                    <div style="width: 24px;"><i class="ico-check"></i></div>
                </td>
                <td align="left" class="">
                    <div style="text-align: center; width: 50px;">{$rs['id']}</div>
                </td>
                <td align="left" class="">
                    <div style="text-align: center; width: 120px;">{$rs['user_name']}</div>
                </td>
                <td align="left" class="">
                    <div style="text-align: center; width: 120px;">{$rs['relation_name']}</div>
                </td>
                <td align="left" class="">
                    <div style="text-align: center; width: 120px;">{$rs['person_number']}</div>
                </td>
                <td align="left" class="">
                    <div style="text-align: center; width: 120px;">{$rs['is_out']?'是':'否'}</div>
                </td>
                <td align="left" class="">
                    <div style="text-align: center; width: 120px;">{$rs['create_time']}</div>
                </td>
                <td align="center" class="handle">
                    <div style="text-align: center; width: 150px; max-width:250px;">
                        <a class="btn blue" href="javascript:void(0);"><i class="fa fa-pencil-square-o"></i>详情</a>
                    </div>
                </td>
            </tr>
        </volist>
        </tbody>
    </table>
</div>
<!--分页位置-->
{$page}
<script>
    $(".pagination  a").click(function(){
        var page = $(this).data('p');
        ajax_get_table('search-form2',page);
    });
    $(document).ready(function(){
        // 表格行点击选中切换
        $('#flexigrid >table>tbody>tr').click(function(){
            $(this).toggleClass('trSelected');
            //页面详情
            var id= $(this).attr('data-id');
            /*
            $.post("{:U('Admin/Distribut/ajaxgroup_detail')}",{id:id},function(data){
                layer.open({
                    type:1,
                    title:'查看小组详情',
                    shadeClose:true,
                    content:data,
                })
            },'html');*/
            layer.open({
                type:2,
                title:false,
                shadeClose:true,
                resize:true,
                title:'详细信息',
                area:['900px','500px'],
                content:["{:U('Admin/Distribut/ajaxgroup_detail')}/id/"+id,'No']
                //content:['http://test.shop/','No']
            });
        });
        $('#user_count').empty().html("{$pager->totalRows}");
    });
</script>